package org.weso.acota.to;

import java.io.InputStream;
import java.io.Serializable;

import org.weso.acota.pk.KnowledgeSourcePK;



/**
 * This class is a transfer object for the data of a knowledge resource.
 */
@SuppressWarnings("serial")
public class KnowledgeResourcesTO implements Serializable {

    private KnowledgeSourcePK knowledgeSourcePk;
    private InputStream knowledgeSourceData;
    public KnowledgeResourcesTO() {
        super();
    }
   public KnowledgeResourcesTO(InputStream data, KnowledgeSourcePK pk) {
        super();
        knowledgeSourceData = data;
        knowledgeSourcePk = pk;
    }
    public InputStream getKnowledgeSourceData() {
        return knowledgeSourceData;
    }
    public void setKnowledgeSourceData(InputStream knowledgeSourceData) {
        this.knowledgeSourceData = knowledgeSourceData;
    }
    public KnowledgeSourcePK getKnowledgeSourcePk() {
        return knowledgeSourcePk;
    }
    public void setKnowledgeSourcePk(KnowledgeSourcePK knowledgeSourcePk) {
        this.knowledgeSourcePk = knowledgeSourcePk;
    }

    public String toString() {     
        return this.getClass().getSimpleName()+"("+knowledgeSourcePk.toString()+", "+knowledgeSourceData.toString()+")";
    }
    
    
    

    
}
